package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.dictionary.pojo.dto.FormDataDictionaryListDTO;
import com.xbongbong.pro.dictionary.pojo.vo.DictionaryVO;
import com.xbongbong.pro.fromdatadictionary.pojo.dto.FormDataDictionaryAddDTO;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/31 9:03
 * @since v1.0
 */
public interface FormDataDictionaryService {

    /**
     * 添加数据字典
     * @param formDataDictionaryAddDTO 参数
     * @return 基本信息
     * @throws XbbException XbbException
     */
    BaseVO add(FormDataDictionaryAddDTO formDataDictionaryAddDTO) throws XbbException;

    /**
     * 获取流失原因列表
     * @param formDataDictionaryListDTO 参数
     * @return 数据字典列表
     * @throws XbbException
     */
    DictionaryVO list(FormDataDictionaryListDTO formDataDictionaryListDTO) throws XbbException;
}
